package com.mhs.mydialog;

import android.app.AlertDialog;
import android.content.Context;

public class MyDialogListner {
	
	public static void ShowMessageAlert(Context con, String message)
	{
		AlertDialog.Builder builder = new AlertDialog.Builder(con);
		builder.setTitle("Thông báo MHS");
		builder.setIcon(android.R.drawable.ic_dialog_info);
		DialogListner listner = new DialogListner();
		builder.setMessage(message);
		builder.setPositiveButton("Ok", listner);
		
		AlertDialog diag = builder.create();
		diag.show();
	}
}
